package cn.tx.service.Impl;
import cn.tx.model.Manager;
import cn.tx.dao.ManagerDao;
import cn.tx.service.ManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;



@Service
public class ManagerServiceImpl implements ManagerService{

    @Autowired
    private ManagerDao managerDao;

    @Override
    public Manager findByUserName(String username){
        return managerDao.findByUserName(username);
    }
    @Override
    public int addManager(Manager manager){
        return managerDao.addManager(manager);
    }
    @Override
    public List<Manager> findList(Map<String, Object> querymap){
        return managerDao.findList(querymap);
    }
    @Override
    public List<Manager> findAll(){
        return managerDao.findAll();
    }
    @Override
    public int findTotal(Map<String, Object> querymap){
        return managerDao.findTotal(querymap);
    }
    @Override
    public int UpdateManagerById(Manager manager){
        return managerDao.UpdateManagerById(manager);
    }
    @Override
    public int delete(String ids){
        return managerDao.delete(ids);
    }

}
